<div class="container w-xxl w-auto-xs" ng-controller="SignupFormController" ng-init="app.settings.container = false;">
  <a href class="navbar-brand block m-t">{{app.name}}</a>
  <div class="m-b-lg">
    <div class="wrapper text-center">
      <strong>注册页面</strong>
    </div>
    <form name="form" class="form-validation">
      <div class="text-danger wrapper text-center" ng-show="authError">
        {{authError}}
      </div>
      <div class="list-group list-group-sm">
        <div class="list-group-item">
          <input placeholder="用户名*" name="name" class="form-control no-border" ng-model="user.username" required>
        </div>
        <div class="list-group-item">
          <input placeholder="备注*" name="remarks" class="form-control no-border" ng-model="user.remarks" required>
        </div>
        <div class="list-group-item">
          <select class="form-control" name="company" ng-model="user.company" required>
              <option value="">选择企业</option>
              <option value="3">课程</option>
          </select>

        </div>
        <div class="list-group-item">
          <input type="password" placeholder="登录密码*" name="password" class="form-control no-border" ng-model="user.password" required>
        </div>
        <div class="list-group-item">
          <input type="password" placeholder="确认登录密码*" name="confirm_password" class="form-control no-border" ng-model="user.confirm_password"
            ui-validate=" '$value==user.password' " ui-validate-watch=" 'user.password' " required>
          <span ng-show='form.confirm_password.$error.validator' style="display:inline-block;width:100%;border-top:1px solid #e7ecee;padding-top:3px;color:#f05050;font-size:12px;">登录密码不一致！</span>
        </div>
        <div class="list-group-item">
            <input type="password" placeholder="支付密码*" name="paypassword" class="form-control no-border" ng-model="user.paypwd" required>
          </div>
          <div class="list-group-item">
            <input type="password" placeholder="确认支付密码*" name="confirm_paypassword" class="form-control no-border" ng-model="user.confirm_paypassword"
              ui-validate=" '$value==user.paypwd' " ui-validate-watch=" 'user.paypwd' " required>
            <span ng-show='form.confirm_paypassword.$error.validator' style="display:inline-block;width:100%;border-top:1px solid #e7ecee;padding-top:3px;color:#f05050;font-size:12px;">支付密码不一致！</span>
          </div>
      </div>
      <div class="checkbox m-b-md m-t-none">
        <label class="i-checks">
          <input type="checkbox" ng-model="agree" required>
          <i></i>
          同意
          <a href>用户协议？</a>
        </label>
      </div>
      <button type="submit" class="btn btn-lg btn-primary btn-block" ng-click="signup()" ng-disabled='form.$invalid || btn_disabled'>注册</button>
      <div class="line line-dashed"></div>
      <a ui-sref="access.signin" class="btn btn-lg btn-default btn-block">登录</a>
    </form>

  </div>
  <div class="text-center" ng-include="'tpl/blocks/page_footer.html'"></div>
  
</div>